package top.continew.admin.generator.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.continew.admin.common.model.entity.BaseDO;

import java.time.LocalDateTime;

/**
 * 任务转派记录实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("task_transfer")
public class TaskTransferDO extends BaseDO {

    /**
     * 任务ID
     */
    private Long taskId;

    /**
     * 转派人ID
     */
    private Long fromUserId;

    /**
     * 接收人ID
     */
    private Long toUserId;

    /**
     * 转派原因
     */
    private String transferReason;

    /**
     * 转派状态：1-待处理，2-已接受，3-已退回
     */
    private Integer transferStatus;

    /**
     * 退回原因
     */
    private String rejectReason;

    /**
     * 转派时间
     */
    private LocalDateTime transferTime;

    /**
     * 处理时间
     */
    private LocalDateTime handleTime;

    /**
     * 转派时上传的附件链接
     */
    private String attachmentUrls;
}